package com.jyxd.web.service.czform;

import com.jyxd.web.dao.czform.ECMOOutputDao;
import com.jyxd.web.data.czform.ECMOOutput;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class ECMOOutputService {

    @Autowired
    private ECMOOutputDao ecmoOutputDao;

    public boolean insert(ECMOOutput ecmoOutput){
        return ecmoOutputDao.insert(ecmoOutput);
    }

    public boolean update(ECMOOutput ecmoOutput){
        return ecmoOutputDao.update(ecmoOutput);
    }

    public ECMOOutput queryData(String id){
        return ecmoOutputDao.queryData(id);
    }

    public List<ECMOOutput> queryList(Map<String,Object> map){
        return ecmoOutputDao.queryList(map);
    }

    public int queryNum(Map<String,Object> map){
        return ecmoOutputDao.queryNum(map);
    }
}
